#ifndef SIMPORT_H
#define SIMPORT_H

#include <QDataStream>
#include "IPort.h"
#include "Socket/xsocket.hpp"
#include "devlibgloabal.h"

class DEVLIB_EXPORT SimPort : public QObject, public IPort
{
    Q_OBJECT

public:
    SimPort();
    ~SimPort();

public:
    bool open(QString port, QStringList args) Q_DECL_OVERRIDE;
    bool reOpen() Q_DECL_OVERRIDE;
    int read(unsigned char *buf, int len, int ms) Q_DECL_OVERRIDE;
    int write(unsigned char *buf, int len, int ms) Q_DECL_OVERRIDE;
    bool close() Q_DECL_OVERRIDE;
    TPortType getPortType() Q_DECL_OVERRIDE;

private:
};


#endif // SIMPORT_H
